﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin.master" AutoEventWireup="true" CodeFile="Quanly_diadiemgiamgia.aspx.cs" Inherits="Admin_Diadiemgiamgia_Quanly_diadiemgiamgia" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">


    <asp:Label ID="Label1" runat="server" BackColor="White" Font-Bold="True" 
        Font-Size="X-Large" ForeColor="#FF3300" Text="Quản Lý Địa Điểm Giảm Giá"></asp:Label>
    <br />
    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
        BackColor="White" BorderColor="#999999" BorderStyle="None" BorderWidth="1px" 
        CellPadding="3" DataKeyNames="Id_diadiem" DataSourceID="LinqDataSource1" 
        GridLines="Vertical">
        <AlternatingRowStyle BackColor="#DCDCDC" />
        <Columns>
            <asp:BoundField DataField="Id_diadiem" HeaderText="Mã" InsertVisible="False" 
                ReadOnly="True" SortExpression="Id_diadiem" />
            <asp:BoundField DataField="Tieude_rut_gon_dd" HeaderText="Tiêu đề" 
                SortExpression="Tieude_rut_gon_dd" />
            <asp:BoundField DataField="Ngaybatdau_dd" HeaderText="Ngaybatdau_dd" SortExpression="Ngaybatdau_dd" />
            <asp:BoundField DataField="Ngayketthuc_dd" HeaderText="Ngày kết thúc" 
                SortExpression="Ngayketthuc_dd" />
            <asp:BoundField DataField="Phamtramgiam_dd" HeaderText="Phần trăm giảm" 
                SortExpression="Phamtramgiam_dd" />
            <asp:TemplateField HeaderText="Địa điểm">
            <ItemTemplate>
            <%# Eval("congty.ten_cty") %>
            </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Cập nhật">
                <ItemTemplate>
                    <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl='<%#"~/Admin/Diadiemgiamgia/Capnhat_diadiem.aspx?id=" + Eval("Id_diadiem") %>'  Text="Cập nhật"></asp:HyperLink>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Xóa">
                <ItemTemplate>
                    <asp:HyperLink ID="HyperLink2" runat="server" NavigateUrl=""  Text="Xóa"></asp:HyperLink>
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
        <FooterStyle BackColor="#CCCCCC" ForeColor="Black" />
        <HeaderStyle BackColor="#000084" Font-Bold="True" ForeColor="White" />
        <PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" />
        <RowStyle BackColor="#EEEEEE" ForeColor="Black" />
        <SelectedRowStyle BackColor="#008A8C" Font-Bold="True" ForeColor="White" />
        <SortedAscendingCellStyle BackColor="#F1F1F1" />
        <SortedAscendingHeaderStyle BackColor="#0000A9" />
        <SortedDescendingCellStyle BackColor="#CAC9C9" />
        <SortedDescendingHeaderStyle BackColor="#000065" />
    </asp:GridView>
    <asp:LinqDataSource ID="LinqDataSource1" runat="server" 
        ContextTypeName="DLL.luuliDataContext" EntityTypeName="" 
        TableName="diadiemgiamgias">
    </asp:LinqDataSource>
    <br />


</asp:Content>

